<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags"%>

<form:form action="security/registration/registerCustomer.do"
	modelAttribute="customerForm">

	<acme:textbox code="security.username" path="username" />
	<acme:password code="security.password" path="password" />
	<acme:password code="security.RepeatPassword" path="RepeatPassword" />
	<acme:textbox code="security.name" path="name" />
	<acme:textbox code="security.surname" path="surname" />
	<acme:textbox code="security.email" path="email" />
	<acme:textbox code="security.address" path="address" />
	
	<h1>
		<spring:message code="security.creditCard" />
	</h1>

	<acme:textbox code="security.creditcard.holderName"
		path="creditCard.holderName" />
	<acme:textbox code="security.creditcard.brandName"
		path="creditCard.brandName" />
	<acme:textbox code="security.creditcard.number"
		path="creditCard.number" />
	<acme:textbox code="security.creditcard.expirationMonth"
		path="creditCard.expirationMonth" />
	<acme:textbox code="security.creditcard.expirationYear"
		path="creditCard.expirationYear" />
	<acme:textbox code="security.creditcard.cvvCode"
		path="creditCard.cvvCode" />

	<br>
	<form:checkbox path="acceptConditions" value="true" />
	<a href="<spring:message
				code="security.conditionsJSP" />"
		target="_blank"><spring:message code="security.acceptConditions" /></a>
	<br>
	<acme:submit code="security.registration.save" name="save" />
</form:form>

<acme:cancel code="security.registration.cancel" url="/welcome/index.do" />
